package com.linxiao.hrcrm.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章类型对象 article_type
 * 
 * @author zhoudong
 * @date 2023-12-25
 */
public class ArticleType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 种类ID */
    private Long id;

    /** 所属商户ID */
    @Excel(name = "所属商户ID")
    private String mchId;

    /** 类型Code */
    @Excel(name = "类型Code")
    private String typeCode;

    /** 种类名称（课程、文章、直播、专栏等） */
    @Excel(name = "种类名称", readConverterExp = "课=程、文章、直播、专栏等")
    private String typeName;

    /** 父节点ID */
    @Excel(name = "父节点ID")
    private Long parentId;

    /** 排序 */
    @Excel(name = "排序")
    private String sort;

    /** 注释 */
    @Excel(name = "注释")
    private String memo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMchId(String mchId) 
    {
        this.mchId = mchId;
    }

    public String getMchId() 
    {
        return mchId;
    }
    public void setTypeCode(String typeCode) 
    {
        this.typeCode = typeCode;
    }

    public String getTypeCode() 
    {
        return typeCode;
    }
    public void setTypeName(String typeName) 
    {
        this.typeName = typeName;
    }

    public String getTypeName() 
    {
        return typeName;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setSort(String sort) 
    {
        this.sort = sort;
    }

    public String getSort() 
    {
        return sort;
    }
    public void setMemo(String memo) 
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mchId", getMchId())
            .append("typeCode", getTypeCode())
            .append("typeName", getTypeName())
            .append("parentId", getParentId())
            .append("sort", getSort())
            .append("createTime", getCreateTime())
            .append("memo", getMemo())
            .toString();
    }
}
